<?php
echo "hehehe why the etc wan't restarted<br/>";
$hostname   =   gethostbyaddr($_SERVER[ 'REMOTE_ADDR ']);
echo $hostname;
echo "============ip addr info=============<br/>";
echo nl2br(`ip addr|grep 172`);
echo "============ip addr end=========<br/>";

//echo "============mysql info=============<br/>";
//mysql
//try {
//    $conn = new PDO('mysql:host=mysql;port=3306;dbname=mysql;charset=utf8', 'root', '123456');

    //$conn->exec('set names utf8');
//    $sql = "SELECT * FROM `user` WHERE 1";
//    $result = $conn->query($sql);
//    while($rows = $result->fetch(PDO::FETCH_ASSOC)) {
//     echo $rows['Host'] . ' ' . $rows['User']."<br />\n";
//    }
//    echo "============mysql info end=========<br/>";
//} catch (PDOException $e) {
//    echo 'Connection failed: ' . $e->getMessage();
//}

phpinfo();
?>
